package com.yc.boot.sys.model.save;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author 杨智杰
 * @since 2021/8/19 9:19
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "添加字典数据模型")
public class SaveDict {

    @Length(max = 32)
    @ApiModelProperty(value = "归属")
    private String belong;

    @Length(max = 128)
    @ApiModelProperty(value = "归属说明")
    private String statement;

    @NotBlank
    @Length(max = 32)
    @ApiModelProperty(value = "关键字", required = true)
    private String keyword;

    @NotBlank
    @Length(max = 64)
    @ApiModelProperty(value = "参数", required = true)
    private String param;

    @Length(max = 128)
    @ApiModelProperty(value = "属性说明")
    private String state;

    @ApiModelProperty(value = "状态(默认为0)")
    private Integer status;

    @ApiModelProperty(value = "排序")
    private Integer sort;
}
